{if $errors}
<div id="errors">
{foreach item=error from=$errors}
<span class="error">{$error}</span><br>
{/foreach}
</div>
{else}
<div>
<table width="100%">
	<tr>
		<td><h3>{$message.messageTitle}</h3></td>
	</tr>
	<tr align="left">
		<td><h4>
	{if $deleteFromOption == 'sent'}
		To: 
	{else}
		From: 
	{/if}
	<a href="http://{$message.siteDomain}/{$message.userName}">{$message.userName}</a></h4></td>
	</tr>
	<tr align="left">
		<td>{$message.message}</td>
	</tr>
	<tr align="left">
		<td align="center">
			{if $deleteFromOption != 'sent'}
			<span class="button"><a href="/{$request->ownerName}/CP/Messages/reply/{$message.idPrivateMsg}">Reply</a></span>
			{/if}
			<span class="button"><a href="/{$request->ownerName}/CP/Messages/delete/{$deleteFromOption}/{$message.idPrivateMsg}">Delete Message</a></span>
		</td>
	</tr>
</table>
</div>
{/if}